//修改个人资料弹窗
function fastEditDialog() {
    var newdate = new Date();
    //url="${base}system/admin!fastedit.action?id=${userId}&newdate="+newdate.getTime();
    //$("#fastEditDiv").load(url); //客户移交

    $('#fastEditDialog .modal-content .modal-body').ace_scroll({
        size: 250
    });
    setTimeout(function () {
        $("#fastEditDialog").modal({
            keyboard: true
        });
    }, 100);
}
//修改个人资料弹窗
function fastEditDialogP() {
    var newdate = new Date();
    //url="${base}system/admin!fastedit.action?id=${userId}&newdate="+newdate.getTime();
    //$("#fastEditDiv").load(url); //客户移交

    $('#fastEditDialogP .modal-content .modal-body').ace_scroll({
        size: 250
    });
    setTimeout(function () {
        $("#fastEditDialogP").modal({
            keyboard: true
        });
    }, 100);
}


function startIntro() {
    if ($(".page-content").width() < 700) {
        var intro = introJs();
        intro.setOptions({
            steps: [

                {element: '#step1', intro: "消息、邮件、个人设置"},
                {
                    element: '#nav-search',
                    intro: "此处为全局搜索栏",
                    position: 'left'
                },
                {
                    element: '#sidebar',
                    intro: "此处为菜单栏",
                    position: 'right'
                },
                {
                    element: '#firstdenglu',
                    intro: "此处为菜单收缩按钮",
                    position: 'right'
                }
            ]
        });
        intro.start();
        intro.oncomplete(function () {
            opentishitop("下次登录是否显示帮助导航？");
        });
        intro.onexit(function () {
            opentishitop("下次登录是否显示帮助导航？");
        });
    } else {
        var intro = introJs();
        intro.setOptions({
            steps: [{
                element: '#step1',
                intro: "个人设置"
            },
                {
                    element: '#nav-search',
                    intro: "此处为全局搜索栏",
                    position: 'left'
                },

                {
                    element: '#steptwo',
                    intro: "此处为全局导航栏",
                    position: 'right'
                },
                {
                    element: '#firstdenglu',
                    intro: "此处为菜单收缩按钮",
                    position: 'right'
                }]
        });
        intro.start();
        intro.oncomplete(function () {
            opentishitop("下次登录是否显示帮助导航？");
        });
        intro.onexit(function () {
            opentishitop("下次登录是否显示帮助导航？");
        });
    }
}

function opentishitop(str) {
    $("#tishitop").text(str)
    //layer.alert(str, {icon: 6});
    $(function () {
        $("#alertstop").modal({
            keyboard: true
        });
    })
}
//保存jqGrid 的页脚信息
var pageNumObj ={};
$(".menueachlist").click(function(){
    pageNumObj ={};
})